package com.qf.ssm.mapper;
/**
   @author 86155
   @ClassName: com.qf.ssm.mapper.CartAppMapper
   @Description: 该类的功能描述
   @date: 2021/10/12 20:16 
*/

import com.qf.ssm.common.request.OrderRequestParams;
import com.qf.ssm.entity.Cart;
import com.qf.ssm.entity.Order;
import com.qf.ssm.entity.Product;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface CartAppMapper {
    Cart selectCart(@Param("memberId") Long memberId, @Param("productId") Long productId);

    Integer insert(@Param("cart") Cart cart);

    Integer updateById(@Param("cart") Cart cart);

    Integer batch(@Param("productIds") List<Long> productIds ,@Param("memberId") Long memberId);

    BigDecimal selectDiscountPrice(@Param("product") Product product);

    List<Product> selectProductList(@Param("memberId") Long memberId);

    Integer insertOrder(@Param("order") Order order);
}
